using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GroupCardResponse : GeneratedMessageLite<GroupCardResponse, GroupCardResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GroupCardResponse, GroupCardResponse.Builder>
		{
			private bool resultIsReadOnly;
			private GroupCardResponse result;
			protected override GroupCardResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GroupCardResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GroupCardResponse DefaultInstanceForType
			{
				get
				{
					return GroupCardResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public string GroupUserName
			{
				get
				{
					return this.result.GroupUserName;
				}
				set
				{
					this.SetGroupUserName(value);
				}
			}
			public Builder()
			{
				this.result = GroupCardResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GroupCardResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GroupCardResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GroupCardResponse other = this.result;
					this.result = new GroupCardResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GroupCardResponse.Builder Clear()
			{
				this.result = GroupCardResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GroupCardResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GroupCardResponse.Builder(this.result);
				}
				return new GroupCardResponse.Builder().MergeFrom(this.result);
			}
			public override GroupCardResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GroupCardResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is GroupCardResponse)
				{
					return this.MergeFrom((GroupCardResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GroupCardResponse.Builder MergeFrom(GroupCardResponse other)
			{
				return this;
			}
			public override GroupCardResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GroupCardResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GroupCardResponse._groupCardResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GroupCardResponse._groupCardResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (num3 != 18u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasGroupUserName = input.ReadString(ref this.result.groupUserName_);
						}
					}
					else
					{
						BaseResponse.Builder builder = BaseResponse.CreateBuilder();
						if (this.result.hasBaseResponse)
						{
							builder.MergeFrom(this.BaseResponse);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.BaseResponse = builder.BuildPartial();
					}
				}
				return this;
			}
			public GroupCardResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public GroupCardResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public GroupCardResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public GroupCardResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public GroupCardResponse.Builder SetGroupUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasGroupUserName = true;
				this.result.groupUserName_ = value;
				return this;
			}
			public GroupCardResponse.Builder ClearGroupUserName()
			{
				this.PrepareBuilder();
				this.result.hasGroupUserName = false;
				this.result.groupUserName_ = "";
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int GroupUserNameFieldNumber = 2;
		private static readonly GroupCardResponse defaultInstance;
		private static readonly string[] _groupCardResponseFieldNames;
		private static readonly uint[] _groupCardResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasGroupUserName;
		private string groupUserName_ = "";
		private int memoizedSerializedSize = -1;
		public static GroupCardResponse DefaultInstance
		{
			get
			{
				return GroupCardResponse.defaultInstance;
			}
		}
		public override GroupCardResponse DefaultInstanceForType
		{
			get
			{
				return GroupCardResponse.DefaultInstance;
			}
		}
		protected override GroupCardResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public string GroupUserName
		{
			get
			{
				return this.groupUserName_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasGroupUserName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.GroupUserName);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GroupCardResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] groupCardResponseFieldNames = GroupCardResponse._groupCardResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, groupCardResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasGroupUserName)
			{
				output.WriteString(2, groupCardResponseFieldNames[1], this.GroupUserName);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasGroupUserName)
			{
				num ^= this.groupUserName_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GroupCardResponse groupCardResponse = value as GroupCardResponse;
			return groupCardResponse != null && (this.hasBaseResponse == groupCardResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(groupCardResponse.baseResponse_))) && (this.hasGroupUserName == groupCardResponse.hasGroupUserName && (!this.hasGroupUserName || this.groupUserName_.Equals(groupCardResponse.groupUserName_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GroupCardResponse, GroupCardResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<GroupCardResponse, GroupCardResponse.Builder>.PrintField("GroupUserName", this.hasGroupUserName, this.groupUserName_, writer);
		}
		public static GroupCardResponse ParseFrom(byte[] data)
		{
			return GroupCardResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GroupCardResponse MakeReadOnly()
		{
			return this;
		}
		public static GroupCardResponse.Builder CreateBuilder()
		{
			return new GroupCardResponse.Builder();
		}
		public override GroupCardResponse.Builder ToBuilder()
		{
			return GroupCardResponse.CreateBuilder(this);
		}
		public override GroupCardResponse.Builder CreateBuilderForType()
		{
			return new GroupCardResponse.Builder();
		}
		public static GroupCardResponse.Builder CreateBuilder(GroupCardResponse prototype)
		{
			return new GroupCardResponse.Builder(prototype);
		}
		static GroupCardResponse()
		{
			GroupCardResponse.defaultInstance = new GroupCardResponse().MakeReadOnly();
			GroupCardResponse._groupCardResponseFieldNames = new string[]
			{
				"BaseResponse",
				"GroupUserName"
			};
			GroupCardResponse._groupCardResponseFieldTags = new uint[]
			{
				10u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.GroupCardResponse.Descriptor, null);
		}
	}
}
